package com.cpi.cornpp.grinddistributionversion.dto;
/**
 * Grind Settings Distribution Version Data Access Object
 * @author Edgar Joao
 *
 */
public class GrindDistributionSettingsVersionDTO extends GrindDistributionVersionDTO{

	private Integer unloadSettingVersionId;
	private double unloadAmount;
	private Integer fixed;
	private Integer plantVersionId;
	
	public boolean equals(Object object) {
		boolean equals = false;
		GrindDistributionSettingsVersionDTO gSettingsVersionDTO = null;
		if(this instanceof GrindDistributionSettingsVersionDTO){
			gSettingsVersionDTO = (GrindDistributionSettingsVersionDTO) object;
			if(gSettingsVersionDTO.getMonthPeriodVersionId().intValue() == this.getMonthPeriodVersionId().intValue()){
				equals = true;
			}
		}
		return equals;
	}
	
	public Integer getUnloadSettingVersionId() {
		return unloadSettingVersionId;
	}	
	public double getUnloadAmount() {
		return unloadAmount;
	}
	public void setUnloadAmount(double argUnloadAmount) {
		unloadAmount = argUnloadAmount;
	}
	public Integer getFixed() {
		return fixed;
	}
	public void setFixed(Integer argFixed) {
		fixed = argFixed;
	}
	public void setUnloadSettingVersionId(Integer argUnloadSettingVersionId) {
		unloadSettingVersionId = argUnloadSettingVersionId;
	}

	public Integer getPlantVersionId() {
		return plantVersionId;
	}

	public void setPlantVersionId(Integer argPlantVersionId) {
		plantVersionId = argPlantVersionId;
	}
	
}
